package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.CarInfo;
import com.yyp.dao.CarInfoDao;
import com.yyp.service.CarInfoService;
import com.yyp.service.CheckApplyInfoService;

@Service
public class CarInfoServiceImpl implements CarInfoService {
	@Resource
	CarInfoDao carInfoImpl;

	//
	// public void del(String names) {

	// CarInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#del(int)
	 */
	public void del(int id) {

		carInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#find(java.lang.Integer)
	 */
//	public CarInfo find(Integer id) {
//		return carInfoImpl.find(id);
//	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#find(java.lang.String)
	 */
	public CarInfo find(String name) {
		return carInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#findAll()
	 */
	public List<CarInfo> findAll() {
		return carInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#save(com.yyp.bean.CarInfo)
	 */
	public void save(CarInfo entity) {
		carInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.CarInfoService#updata(com.yyp.bean.CarInfo)
	 */
	public void updata(CarInfo entity) {
		carInfoImpl.updata(entity);
	}

}
